<%= form_for(@stock, url:
		if action_name == "new"
			drug_stocks_path
		else
			drug_stuck_path
		end
	) do |f| %>
  <% if @stock.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@stock.errors.count, "error") %> prohibited this stock from being saved:</h2>

      <ul>
      <% @stock.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :inventory_id %><br>
    <%= _path
  </div>
  <div class="field">
    <%= f.label :quantity %><br>
    <%= f.text_field :quantity %>
  </div>
  
  <%= f.hidden_field :drug_id, :value => params[:drug_id] %>
  
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
